package thread5.TEST;

public class test2 {
    static Thread thread1 = new Thread(() -> {
    });
    public static void main(String[] args) throws InterruptedException {
        Thread thread2 = new Thread(() -> {
            
        });
        thread2.start();
        Thread.sleep(3000);
        //thread2.start();//创建好的线程只能启动一次，启动中和销毁后都不能再启动，方法可以重复调用
        thread1.start();
//        thread1.start();
    }
}
